package com.edison.demo.until;

import java.util.Random;

/**
 * @author edison
 */
public class PrticIdGenerator {

    private PrticIdGenerator(){
        throw new IllegalStateException("Utility class");
    }
    private static final Random RANDOM = new Random();

    public static String generate() {
        int prefix = RANDOM.nextInt(3) + 1;
        int middle = 60000 + RANDOM.nextInt(40000);
        String suffix = "00000";

        return String.format("%d0000000000000%d%s", prefix, middle, suffix);
    }

}
